# -*- coding: utf-8 -*-

'''

@author: wyndem
@Emil:   wyndem.wen@timevary.com
@FileName: test1.py
@Time: 2018/7/21 16:28
@Description: 

'''
import json
import os
from concurrent.futures import ThreadPoolExecutor

import tool

# executor = ThreadPoolExecutor(1)
def test_function(num1, num2):
    print(num1, num2)
    return num1 + num2

# result_iterators = executor.submit(test_function, 1, 2)

# result_iterator2s = executor.submit(test_function, 1, 2)
# result_iterator1s = executor.submit(test_function, 1, 2)
# result_iterato3rs = executor.submit(test_function, 1, 2)
#
# result_iterators =executor.map(test_function,[1,2],[3,4])
# for r in result_iterators:
#     print(r)
# tool.TOOL.create_mail_text()
# print(os.path.join('C:/windwos/','a.txt'))


json_data = {
            "lang": "en-GB",
            "data":
                {
                    "source": "WEB"

                }
        }

print(json.dumps(json_data))
